package com.bwie.controller;

import com.bwie.utils.R;
import com.bwie.vo.TestVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 * @author 牛毅
 * @version 1.0
 * @date 2025/7/17
 * @description TODO
 */
@RestController
@RequestMapping("/test/index")
@Slf4j
@Api(tags = "测试管理")
public class TestController {

    /** 
     * @description:
     * @param: 测试接口
     * @return:
     * @author 牛毅
     * @date: 2025/7/17 20:02
     */
    @ApiOperation("测试接口")
    @PostMapping("/test/{pageNum}/{pageSize}")
    public R test(@PathVariable(name = "pageNum")Integer pageNum,
                  @PathVariable(name = "pageSize") Integer pageSize,
                  @RequestBody@Validated TestVo userVo){
        log.info("pageNum="+pageNum+"\tpageSize="+pageSize);
        return R.OK(userVo);
    }
}
